home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
gfx
/
misc
/
graphtal1293.lha
/
Graphtal.Amiga
/
README.AMIGA
< prev
next >
Wrap
Text File
|
1993-12-13
|
7KB
|
231 lines
README.AMIGA (2nd Version 12.93)
=============
- To compile Graphtal on the Amiga you need GCC-233, the os-includes
and a lot of memory. (compilation without optimizer: about 6MB)
Don't forget to set a large stack size (256000 is fine) !
Because AmigaDOS isn't case sensitive you must edit string.h
(for more information on this read the header of string.h)
(NEW) Do also read the file IMPORTANT.README.AMIGA
- Graphtal has a device for Rayshade output.
- I have include some tools to convert PPM output to IFF24 in bin
(to convert PPM output to IFF get the the PBM plus package)
- Note: some examples for Graphtal need a lot of memory (over 10MB) !
- Note: Graphtal needs the cpp to process the inputfile.
(NEW) cpp and sh are now included in the directory Unix
- GCC-233 and Rayshade are available by anonymous FTP in ftp.luth.se
or any other Aminet site
- (NEW) Note: setting the environment variable COLORFILE now works
(see changes in file color.C)
- (NEW) examples how to use graphtal can be found in the file EXAMPLE.SCRIPT
For more information on Graphtal please read the README file !
Lucas Ammon (lammon@iamexwi.unibe.ch)
This is a list of changes made to the original
Graphtal_no_bison_no_flex-1.0.tar.Z distribution ...
==============================================================================
TO TRANSFORM Graphtal.Original/color.C
INTO Graphtal.Amiga/color.C ...
==============================================================================
*** APPEND AFTER 39 IN color.c.u ***
>
>#ifdef AMIGA_GCC
>
>void Color::setupColors()
>{
> char name[256];
> if (GetVar(COLOR_ENV,name,256,0)!=-1)
> ColorFile = name;
> else
> ColorFile = defaultColorFile;
> readColors();
>}
>
>#else
>
*** APPEND AFTER 49 IN color.c.u ***
>#endif
>
==============================================================================
TO TRANSFORM Graphtal.Original/color.h
INTO Graphtal.Amiga/color.h ...
==============================================================================
*** APPEND AFTER 21 IN color.h.u ***
>extern "C" GetVar(...);
>
==============================================================================
TO TRANSFORM Graphtal.Original/Expression.C
INTO Graphtal.Amiga/Expression.C ...
==============================================================================
*** CHANGE [81,85] IN Graphtal.Original/Expression.C TO [81,93] IN Graphtal.Amiga/Expression.C ***
< for (i=0; i<op2->theExpression->count(); i++)
< theExpression->append(op2->theExpression->item(i)->copy());
< for (i=0; i<op1->theExpression->count(); i++)
< theExpression->append(op1->theExpression->item(i)->copy());
< theExpression->append(oper);
---------------
>#ifdef AMIGA_GCC
> for (i=0; i<op1->theExpression->count(); i++)
> theExpression->append(op1->theExpression->item(i)->copy());
> for (i=0; i<op2->theExpression->count(); i++)
> theExpression->append(op2->theExpression->item(i)->copy());
> theExpression->append(oper);
>#else
> for (i=0; i<op2->theExpression->count(); i++)
> theExpression->append(op2->theExpression->item(i)->copy());
> for (i=0; i<op1->theExpression->count(); i++)
> theExpression->append(op1->theExpression->item(i)->copy());
> theExpression->append(oper);
>#endif
*** CHANGE [100,106] IN Graphtal.Original/Expression.C TO [108,124] IN Graphtal.Amiga/Expression.C ***
< for (i=0; i<op3->theExpression->count(); i++)
< theExpression->append(op3->theExpression->item(i)->copy());
< for (i=0; i<op2->theExpression->count(); i++)
< theExpression->append(op2->theExpression->item(i)->copy());
< for (i=0; i<op1->theExpression->count(); i++)
< theExpression->append(op1->theExpression->item(i)->copy());
< theExpression->append(oper);
---------------
>#ifdef AMIGA_GCC
> for (i=0; i<op1->theExpression->count(); i++)
> theExpression->append(op1->theExpression->item(i)->copy());
> for (i=0; i<op2->theExpression->count(); i++)
> theExpression->append(op2->theExpression->item(i)->copy());
> for (i=0; i<op3->theExpression->count(); i++)
> theExpression->append(op3->theExpression->item(i)->copy());
> theExpression->append(oper);
>#else
> for (i=0; i<op3->theExpression->count(); i++)
> theExpression->append(op3->theExpression->item(i)->copy());
> for (i=0; i<op2->theExpression->count(); i++)
> theExpression->append(op2->theExpression->item(i)->copy());
> for (i=0; i<op1->theExpression->count(); i++)
> theExpression->append(op1->theExpression->item(i)->copy());
> theExpression->append(oper);
>#endif
==============================================================================
TO TRANSFORM Graphtal.Original/main.C
INTO Graphtal.Amiga/main.C ...
==============================================================================
*** APPEND AFTER 39 IN Graphtal.Original/main.C ***
>#ifdef SUPPORT_AMIGA
># include "LineDevice.h"
># include "WireDevice.h"
># include "AMIGA_Window.h"
>#endif
>
*** APPEND AFTER 106 IN Graphtal.Original/main.C ***
>#ifdef SUPPORT_AMIGA
> else if (theOptions.drivername == "amigasimple")
> d = new LineDevice(new AMIGA_Window, &theOptions);
> else if (theOptions.drivername == "amigawire")
> d = new WireDevice(new AMIGA_Window, &theOptions);
>#endif
*** APPEND AFTER 112 IN Graphtal.Original/main.C ***
>#ifdef SUPPORT_AMIGA
> cerr << "\nUnknown driver specified, using simple AMIGA.\n\n";
> d = new LineDevice(new AMIGA_Window, &theOptions);
>#else
*** APPEND AFTER 115 IN Graphtal.Original/main.C ***
>#endif
==============================================================================
TO TRANSFORM Graphtal.Original/mathutilities.h
INTO Graphtal.Amiga/mathutilities.h ...
==============================================================================
*** APPEND AFTER 23 IN Graphtal.Original/mathutilities.h ***
>#ifdef NO_DRAND48
>#include <stdlib.h>
>inline void srand48(long seed) { srand((int)seed); }
>inline double drand48() { return (double)( ((double)rand()) / ((double)(RAND_MAX)) ); }
>#else
*** APPEND AFTER 25 IN Graphtal.Original/mathutilities.h ***
>#endif
==============================================================================
TO TRANSFORM Graphtal.Original/rcString.C
INTO Graphtal.Amiga/rcString.C ...
==============================================================================
*** APPEND AFTER 19 IN Graphtal.Original/rcString.C ***
>#ifdef AMIGA_GCC
> #include "string.h"
>#endif
>
==============================================================================
CREATE FILE Graphtal.Amiga/string.h
==============================================================================
>/*
> * Because AmigaDOS isn't case sensitive it can't make a difference
> * between the C++ "String.h" and the C "string.h". To fix this
> * please set the full path to your "string.h" header file below !
> *
> */
>
>#include "GCC:include/string.h"
>
Lucas Ammon (lammon@iamexwi.unibe.ch)